using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class WebMaster_UserControls_ucDateTime : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblDateID.Attributes.Add("value", "1");
        lblLangID.Attributes.Add("value", "vi");
        string Times = DateTime.Now.Year + "," + (DateTime.Now.Month - 1) + "," + DateTime.Now.Day + "," + DateTime.Now.Hour + "," + DateTime.Now.Minute + "," + DateTime.Now.Second;
        string sScript = "";
        sScript += "<script language='javascript'>";
        sScript += "    SetValue('" + lblDateID.ClientID + "','" + lblLangID.ClientID + "','" + lblDateTime.ClientID + "');";
        sScript += "    SetTimes(" + Times + ");";
        sScript += "</script>";
        ltrScript.Text = sScript;
    }
}
